package git.soulbgm.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import git.soulbgm.utils.PoiCommon;
import lombok.Data;

import java.util.Date;

/**
 * @author SoulBGM
 * @version 1.0
 * @date 2019/7/23 19:25
 */
@Data
@ExcelTarget("user")
public class User {

    @Excel(name = "序号")
    private int id;

    @Excel(name = "用户名", width = 20)
    private String username;

    @Excel(name = "年龄")
    private int age;

    @Excel(name = "出生日期", format = PoiCommon.pattern, width = 40)
    private Date birthDate;

}
